package com.bifrost.entity;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the SKU_OPTION_VALUE database table.
 */
@Entity
@Table(name = "SKU_OPTION_VALUE",indexes = {
        @Index(name = "SKU_ID_INDEX",columnList = "SKU_ID",unique = false)
})
@NamedQuery(name = "SkuOptionValue.findAll", query = "SELECT s FROM SkuOptionValue s")
public class SkuOptionValue implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "SKU_OPTION_VALUE_XREF_ID", unique = true, nullable = false)
    private Long skuOptionValueXrefId;

    //bi-directional many-to-one association to ProductOption
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "PRODUCT_OPTION_VALUE_ID", nullable = false, foreignKey = @ForeignKey(name = "none", value = ConstraintMode.NO_CONSTRAINT))
    private ProductOptionValue productOptionValue;

    //bi-directional many-to-one association to ProductSku
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "SKU_ID", nullable = false, foreignKey = @ForeignKey(name = "none", value = ConstraintMode.NO_CONSTRAINT))
    private ProductSku productSku;

    public SkuOptionValue() {
    }

    public Long getSkuOptionValueXrefId() {
        return this.skuOptionValueXrefId;
    }

    public void setSkuOptionValueXrefId(Long skuOptionValueXrefId) {
        this.skuOptionValueXrefId = skuOptionValueXrefId;
    }

    public ProductOptionValue getProductOptionValue() {
        return productOptionValue;
    }

    public void setProductOptionValue(ProductOptionValue productOptionValue) {
        this.productOptionValue = productOptionValue;
    }

    public ProductSku getProductSku() {
        return this.productSku;
    }

    public void setProductSku(ProductSku productSku) {
        this.productSku = productSku;
    }


}